$(function(){
	$.ajax({
		url:'/cart/queryCart',
		type:'get',
		success:function(res){
			console.log(res);
			if(res.length){
				var html = template('templatePl',{result:res});
				console.log(html);
				$('#template-box').html(html);
			}else{
				location.href="login.html";				
			}
			
		}
	});
	$('#template-box').on('tap','.delete-btn',function(){
		
	});
});
